import request from '@/utils/request'

export function fuelOrder(data) {
  return request({
    url: `crm/fleet/fuelOrder`,
    method: 'post',
    data: data
  })
}

export function fuelOrderSummary(data) {
  return request({
    url: `crm/fleet/fuelOrderSummary`,
    method: 'post',
    data: data
  })
}
export function fuelOrderExport(data) {
  return request({
    url: `crm/fleet/fuelOrderExport`,
    method: 'post',
    data: data
  })
}

export function acc(data) {
  return request({
    url: `crm/fleet/acc`,
    method: 'post',
    data: data
  })
}

export function reportHistory(data) {
  return request({
    url: `crm/fleet/rpt_history`,
    method: 'post',
    data: data
  })
}

export function reportUrl(data) {
  return request({
    url: 'crm/fleet/rpt_result',
    method: 'post',
    data: data
  })
}
export function tanks(data) {
  return request({
    url: 'crm/fleet/tanks',
    method: 'post',
    data: data
  })
}

export function cmpDetail() {
  return request({
      url: `crm/fleet/cmp_detail`,
      method: 'post'
  })
}

export function sub_card(data) {
  return request({
    url: `crm/fleet/sub_card`,
    method: 'post',
    data: data
  })
}

export function transfer(data) {
  return request({
    url: `crm/fleet/transfer`,
    method: 'post',
    data: data
  })
}

export function updateStatus(data) {
  return request({
    url: `crm/fleet/updateStatus`,
    method: 'post',
    data: data
  })
}

export function batchAdd(data) {
  return request({
    url: `crm/fleet/sub_card_batch_add`,
    method: 'post',
    data: data
  })
}

export function saveMember(data) {
  return request({
    url: `crm/fleet/save`,
    method: 'post',
    data: data
  })
}

export function updateMember(data) {
  return request({
    url: `crm/fleet/updateBase`,
    method: 'post',
    data: data
  })
}
export function overview() {
  return request({
    url: `crm/fleet/overview`,
    method: 'post'
  })
}
